﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RestSharp;

namespace Esign.Net.Input
{
    [Serializable]
    public class DocTemplates
    {
        [Serializable]
        public class TemplateInput : InputBase, IInput
        {
            /// <summary>
            /// 合同个模版id
            /// </summary>
            public string DocTemplateId { get; set; }

            public T Build<T>(T t, Config config) where T : InputBase, new()
            {
                t.ConfigInfo = config;
                //https://open.esign.cn/doc/opendoc/file-and-template3/aoq509
                t.Url = $"/v3/doc-templates/{DocTemplateId}";
                t.ReqType = Method.GET;
                return t;
            }
        }


    }
}
